package com.da.javalog.check.core;

/**
 * @author joker
 * @date 2020/04/28
 */
public class CheckException extends Exception {
    private String errCode = "-1";

    public CheckException() {
    }

    public CheckException(String message) {
        super(message);
    }

    public CheckException(String errCode, String message) {
        super(message);
        this.errCode = errCode;
    }

    public CheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public CheckException(Throwable cause) {
        super(cause);
    }

    protected CheckException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public String getErrCode() {
        return this.errCode;
    }
}
